home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Examples / AppKit / ScrollDoodScroll / StubView.m < prev    next >
Text File  |  1992-04-03  |  621b  |  29 lines

  1. // StubView.m
  2. // By Jayson Adams, NeXT Developer Support Team
  3. // You may freely copy, distribute and reuse the code in this example.
  4. // NeXT disclaims any warranty of any kind, expressed or implied, as to its
  5. // fitness for any particular use.
  6.  
  7. #import <dpsclient/psops.h>
  8. #import <appkit/graphics.h>
  9.  
  10. #import "StubView.h"
  11.  
  12. @implementation StubView
  13.  
  14. - drawSelf:(const NXRect *)rects :(int)count
  15. {
  16.     NXRect    lineRect;
  17.     
  18.     PSsetgray(NX_WHITE);
  19.     NXRectFill(&bounds);
  20.     PSsetgray(NX_BLACK);
  21.     
  22.     NXSetRect(&lineRect, 0.0, 0.0, NX_WIDTH(&bounds), 1.0);
  23.     NXFrameRect(&lineRect);
  24.     
  25.     return self;
  26. }
  27.  
  28. @end
  29.